<#include "base.ftl">
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="${base}css/bootstrap.min.css">
  <link rel="stylesheet" href="${base}css/bootstrap-datetimepicker.min.css">
 rel="stylesheet" />
  <link rel="stylesheet" href="${base}css/mainPc.css">
 
 
		
  <style type="text/css">
  	.current{
  		color:#E71F00;
  	}
  </style>
  <title>广州久龙精品酒店</title>
</head>
<body>
  <header>
    <nav class="navlist">
      <div class="nav_left">
        <ul>
          <li><a class="logo" href="${base}javascript:;"><img src="${base}img/logo_orange.png" height="40" alt=""></a></li>
     
        </ul>
      </div>
           
    </nav>
    <div class="shadow"></div>
  </header>

  <div class="container">
    <div class="row">
      <div class="col-md-2">
        <h4>各家分店总盈利10000</h4>
       
        <nav class="navbar navbar-default">
          <ul class="nav navbar-nav">
            <li class="active wzfbtn"><a href="#">未审核</a></li>
            <li class="yzfbtn"><a href="doneCheckd">已审核</a></li>
          </ul>
        </nav>
      </div>
      <form action="" method="post">
      	  <div>
      		<label>开始日期</label>
      		 <input size="16" type="text" value="" readonly name="dateBegin" class="Wdate" onClick="WdatePicker()">
                <label>结束日期</label>
               <input size="16" type="text" value="" readonly name="dateEnd" class="Wdate" onClick="WdatePicker()">
          
              
              
              <input type="submit" class="button button-big button-fill button-success" value="查询" style="float: center;">
            <label style="margin-left: 20px;">支付方式</label>
          <select name="" id="" style="border-radius:4px; height: 34px; width: 100px;" >
            <option value="微信">微信</option>
            <option value="支付宝">支付宝</option>
            <option value="银行卡">银行卡</option>
          </select>
      
      </div>
      
      
      </form>
    
      <form action="orderCheckCommit" method="post" name="form1">  
       
      <div class="col-md-10 wzf">
         
        <table class="table table-hover">
    
          <thead>
           <#if (detailList?size>0) >
		<#list detailList as order>  
		 
            <tr>
              <th>#</th>
              <th>未审核订单${order.id}</th>
              <th>商品</th>
              <th>价格</th>
            </tr>
          </thead>
           <ul>
       
          <tr>
            <td><input class="tablecheck" type="checkbox" checked name="${order_index}" id="" value="${order.id}" hidden></td>
            <td><img src="${order.expressno}" width="180" height="130" alt=""></td>
            <td>
            <h4>久龙精品${order.expresscode}房(${order.expressname})</h4>
            <p>订单完成日期：${order.createdate}</p>
            <p>支付费率：0.03</p>
            <p>优惠金额：0</p>
            <p>单笔净盈利：22</p>
            </td>
            <td><span class="price">&yen;${(order.amount)}</span></td>
          </tr>
          
           </#list>
                     </#if>
          </ul>
        </table>
         
    
     
      </div>
   <input type="button" class="btn btn-lg btn-primary" value="报表导出" onclick="return modify();" style="float: right;">
     </form>
   
  
<script type="text/javascript">
   
   function modify() 
    { 
    document.form1.action="orderExcelExport"; 
   
    document.form1.submit();
 

    } 
   
   
    function gotoIndexLogin1(){
		var account=document.getElementById("account").value;
		var hash=document.getElementById("password").value;
		var password=hex_md5(hash);
	$.ajax({
		type:'post',
		url:'indexPc1',
		data:{account:account,password:password},
		dataType:'json',
		success:function(data){
			try{
				//document.getElementById("exampleInputEmail12").value=data.validateCode;
				//document.getElementById("myModal").style.display="none";
		
			var test=data.validateCode;
		
		if(test==""){
			//alert('账号或者密码不正确，请重新输入！');
			return false;
		}
			document.getElementById("login").style.display="none";
		
			document.getElementById("cart1").innerHTML=test;
			document.getElementById("cart").style="visible";
			document.getElementById("person").style="visible";
			
			//alert('success');
			$("#myModal").modal("hide");
			}catch(e){
				console.log(e);
			}
		},
		error:function(data){
			alert("账号或者密码不正确，请重新输入！");
			console.log(1234);
		// callpay('indexPc');
		}
	});
	//setInterval('test()',1000);
}



//检查缓存中是否存在用户信息
function checkAccount(){
	//var session=document.getElementById("cart1").innerHTML;
	$.ajax({
		type:'get',
		url:'checkAccount',
		data:{},
		dataType:'json',
		success:function(data){
			try{
			var isFlag=data.isFlag;	
			var accountIsFlag=data.accountIsFlag;

			

		if(isFlag==0){
			return false;
		}
			document.getElementById("login").style.display="none";
		//讲后台的用户传值到目标框里
			document.getElementById("cart1").innerHTML=accountIsFlag;
			document.getElementById("cart").style="visible";
			//展示修改个人信息按钮
			document.getElementById("person").style="visible";
			
			//alert('success');
			$("#myModal").modal("hide");
			}catch(e){
				console.log(e);
			}
		},
		error:function(data){
			alert("账号或者密码不正确，请重新输入！");
			console.log(1234);
		// callpay('indexPc');
		}
	});
	}
	
	


  </script>
	
  <script src="${base}js/md5.js"></script>
  <script src="${base}js/jquery.min.js"></script>
  <script src="${base}js/bootstrap.min.js"></script>
  <script src="${base}js/bootstrap-datetimepicker.min.js"></script>
  <script src="${base}js/bootstrap-datetimepicker.fr.js"></script>

  <script src="${base}js/mainPc.js"></script>
  <script src="${base}js/moment.min.js" type="text/javascript"></script>
<script src="${base}js/My97DatePicker/config.js"></script>

<script src="${base}js/My97DatePicker/WdatePicker.js"></script>
</body>
</html>